#!/usr/bin/env bash

if [ ! -f run.sh ]; then
echo 'run.sh must be run from its folder' 1>&2
exit 1
fi

CURDIR=`pwd`
OLDGOPATH="$GOPATH"
export GOPATH="$CURDIR"

gofmt -w src

go install fileS

export GOPATH="$OLDGOPATH"

echo '[FINISHED]'

# export GIN_MODE=release
# nohup ./bin/fileS > /dev/null &
